const path = require('path');

module.exports = {
  resolve: {
    alias: {
      '@pages': path.resolve(__dirname, `../src/main/pages`),
      '@layout': path.resolve(__dirname, `../src/main/layout`),
      '@src': path.resolve(__dirname, '../src/main'),
      '@components': path.resolve(__dirname, '../src/main/components'),
      'layout': path.resolve(__dirname, `../src/main/layout/layout.js`),
    }
  },
  mode: 'none',
  target: 'electron-main',
  devtool: 'inline-source-map',
  entry: path.resolve(__dirname, '../src/main/entry.js'),
  output: {
    filename: '[name].js',
    path: path.resolve(__dirname, '../build'),
  }
}